import { _decorator, Component, AudioSource } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('AudioManager')
export default class RowFallClear_AudioManager extends Component {
    public static Instance: RowFallClear_AudioManager;
    music_volume: number;
    sound_volume: number;
    @property(AudioSource)
    audio_bgm: AudioSource | null = null;
    @property(AudioSource)
    audio_disappear: AudioSource | null = null;
    @property(AudioSource)
    audio_fall: AudioSource | null = null;
    @property(AudioSource)
    audio_move: AudioSource | null = null;
    @property(AudioSource)
    audio_explore: AudioSource | null = null;
    onLoad() {
        RowFallClear_AudioManager.Instance = this;

        RowFallClear_AudioManager.Instance.audio_bgm.play();
        RowFallClear_AudioManager.Instance.audio_bgm.loop = true;
    }
}